import { use_request_data_store } from '@/store/request-data'

import { getNavigationList } from '@/api/common'

export function useNavigation() {
  let request_data = use_request_data_store()

  function getNavigation() {
    // 保存导航数据
    getNavigationList().then((res) => {
      request_data.navigationList = res.data
    })
  }

  return {
    getNavigation,
  }
}
